import request from '@/utils/request'

// 查询学分预警列表
export function listCreditWarning(query) {
  return request({
    // url: '/labour/creditWarning/list',
    url: '/student/score/getStudentScoreList',
    method: 'get',
    params: query
  })
}

// 查询学分预警详细
export function getCreditWarning(id) {
  return request({
    url: '/labour/creditWarning/' + id,
    method: 'get'
  })
}

// 新增学分预警
export function addCreditWarning(data) {
  return request({
    url: '/labour/creditWarning',
    method: 'post',
    data: data
  })
}

// 修改学分预警
export function updateCreditWarning(data) {
  return request({
    url: '/labour/creditWarning',
    method: 'put',
    data: data
  })
}

// 删除学分预警
export function delCreditWarning(id) {
  return request({
    url: '/labour/creditWarning/' + id,
    method: 'delete'
  })
}
// 发送预警信息
export function sendCreditWarning() {
  return request({
    url: '/hd/apply/sendMsg2',
    method: 'put',
  })
}
